package com.bw.ppjokeplay.common.mvvm.adapter

import android.widget.ImageView
import com.bw.ppjokeplay.R
import com.bw.ppjokeplay.common.network.LoadImage
import com.bw.ppjokeplay.mvvm.model.entity.FeedEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class HomeListAdapter : BaseQuickAdapter<FeedEntity,BaseViewHolder>
    (R.layout.layout_feed_type_image) {
    override fun convert(holder: BaseViewHolder, item: FeedEntity) {
        val img : ImageView = holder.getView(R.id.feed_image)
        LoadImage.loadMatchImg(item.url,img)
    }
}